//
//  Question.m
//  SWEngiOS
//
//  Created by Eric Augustine on 3/26/12.
//  Copyright 2012 UW - Parkside. All rights reserved.
//

#import "Question.h"
#include <stdlib.h>


@implementation Question

@synthesize text;
@synthesize answer;

- (id) init { 
	if(self = [super init]){ 
		self.text=@"Guess a number 1 to 100";
		NSInteger num =(NSInteger)(arc4random() % 100);
		self.answer=num;
	} 
	return self; 
}

- (id) initWithText: (NSString*)t andAnswer:(NSInteger)a{ 
	if(self = [super init]){ 
		self.text=t;
		self.answer=a;
	} 
	return self; 
}

@end
